using System;
using Sinacor.Servico.Bovespa.Ordens.Service.DataContract.Request;
using Sinacor.Servico.Bovespa.Ordens.BusinessEntity;
using System.Collections.Generic;

namespace Sinacor.Servico.Bovespa.Ordens.Service.ServiceImplementation.Translator
{
    /// <summary>
    /// Data :20/01/2008****
    /// Autor:Eduardo Sertorio
    /// </summary>
    public class TranslateExcluirOrdemRequest
    {
        /// <summary>
        /// Data :20/01/2008****
        /// Autor:Eduardo Sertorio
        /// </summary>
        /// <param name="from"></param>
        /// <returns></returns>
		/// 
		/// Data:08/02/2008 11:03
		/// Autor:CPimentel
		/// Obs: INCLUIDO NOVO ITEM DE TRANSLATION "TextoJustificativa"

        public static BusinessEntity.Ordem ToOrdem(DataContract.Request.ExcluirOrdemRequest from)
        {
            if (from == null)
                return null;

            BusinessEntity.Ordem to = new Ordens.BusinessEntity.Ordem();

            to.DataOrdem = from.DataOrdem;
            to.NumeroOrdem = from.NumeroOrdem;
            to.NumeroOrdemSubSequencia = from.NumeroOrdemSequencia;
			to.TextoJustificativa = from.TextoJustificativa; //CPimentel - 08/02/2008 11:03

            return to;
        }
    }
}

